const app = getApp()

Page({
  data: {
    //motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    coursesData: {
      courses1Title: '本月课程',
      courses1Url: "/pages/monthCourse/monthCourse",
      courses1ContentList: [
        {
          contentTitle: "精品课程标题1",
          contentTime: "12.12 上海",
          contentPrice: "￥120.0",
          contentImage: "/img/image20.png"
        },
        {
          contentTitle: "精品课程标题2",
          contentTime: "12.12 上海",
          contentPrice: "￥120.0",
          contentImage: "/img/image20.png"
        }
      ]
    },
    coursesData2: {
      courses2Title: '重点推荐',
      courses2Url: "",
      courses2ContentList: [
        {
          contentTitle: "精品课程标题1",
          contentTime: "发布时间：2019/1/23",
          contentPrice: "￥120.0",
          contentImage: "/img/image22.png"
        },
        {
          contentTitle: "精品课程标题2",
          contentTime: "发布时间：2019/1/23",
          contentPrice: "￥120.0",
          contentImage: "/img/image22.png"
        }
      ]
    },
    coursesData3: {
      courses3Title: '研究报告',
      courses3Url: "/pages/monthCourse/monthCourse",
      courses3ContentList: [
        {
          contentTitle: "精品课程标题1",
          contentTime: "发布时间：2019/1/23",
          contentImage: "/img/image22.png"
        }
      ]
    },
    showMasking: true,
    newContent: "200+房企人力总汇集在山城，这里发生了什么大事？"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  //审批
  clickApproval(){
    wx.switchTab({
      url: '/pages/alarm/alarm',
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})